﻿namespace Test30.Engine
{
    public class Stat : FixedStat
    {
        public static implicit operator int(Stat stat)
        {
            return stat.Current;
        }
        public const int TotalMin = 1;
        public const int TotalMax = 60;

        public const int BaseMin = 1;
        public const int BaseMax = 40;
        public string Name => GetType().Name;

        public Stat(int baseValue) : base(baseValue)
        {
        }
        public Stat() : this(10)
        {
        }

        protected override int GetBaseMin()
        {
            return BaseMin;
        }

        protected override int GetBaseMax()
        {
            return BaseMax;
        }

        protected override int GetTotalMin()
        {
            return TotalMin;
        }

        protected override int GetTotalMax()
        {
            return TotalMax;
        }
    }
}
